package com.cn;

import com.cn.config.ZkClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * Created by chenyuncong on 2019/5/6.
 */
@SpringBootApplication
public class ZKApplication {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(ZKApplication.class, args);
        ZkClient zkClient = context.getBean(ZkClient.class);
        zkClient.register();
    }
}
